// 获取本地图标
export function getLocalIcons() {
  const localIcons = import.meta.glob('../assets/local-icon/*.svg');
  console.log('本地图标路径:', Object.keys(localIcons));
  
  const keys = Object.keys(localIcons)
    .map(item => item.split('/').at(-1)?.replace('.svg', '') || '')
    .filter(Boolean);
  
  console.log('本地图标名称:', keys);
  return keys;
}

// 获取系统图标
export function getSystemIcons() {
  const sysIcons = import.meta.glob('../assets/svg-icon/*.svg');
  console.log('系统图标路径:', Object.keys(sysIcons));
  
  const keys = Object.keys(sysIcons)
    .map(item => item.split('/').at(-1)?.replace('.svg', '') || '')
    .filter(Boolean);
  
  console.log('系统图标名称:', keys);
  return keys;
}
